/**
 * Created by OnlyMid on 2017/6/23.
 */
var kongjian = new Vue({
    el:"#kongjian",
    data:{
        message:"hello Vue!"
    }
});

document.getElementById("subm").onclick = subm;
function subm() {
    console.log(document.getElementById("uploadFile").value);
    var data = {
        shuoshuo:document.getElementById("shuoshuoText").value,
    };
    $.ajax(
        {
            // url:"http://115.159.217.223/kongjian/app/index.php",
            url:"../app/index.php",
            success: function(){
                console.log("上传成功");
            },
            type:"post",
            data:data
            // data:{
            //     shuoshuo:"打野"
            // }
        }
    );
}
function formSubmit() {
    console.log("触发form提交");
    document.getElementById("upload_form").submit();
}